package operation;

import Book.Book;
import Book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Wukong
 * Date: 2022-05-21
 * Time: 10:53
 */
public class DisplayOperation implements IOperation{

    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        int current=bookList.getUsedSize();
        for (int i = 0; i <current; i++) {
            Book book=bookList.getBook(i);
                System.out.println(book);
        }
    }
}
